<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="./lib/vue.js"></script>
</head>
<body>
    <div id="box">
        <input type="text" v-model="mytext">
        <ul>
            <li v-for="data in getData">
                {{data}}
            </li>
        </ul>
    </div>
    <script type="text/javascript">
        var vm = new Vue({
            el:"#box",
            data:{
                dataList:["aaa","bbb","ccc","ddd","add","cee","eee"],
                mytext:'',
                newArr:["aaa","bbb","ccc","ddd","add","cee","eee"],
            },
            computed:{
                getData(){
                    return this.dataList.filter(item=>item.indexOf(this.mytext)>-1);
                }
            },
        })
    </script>
</body>
</html>